﻿<div class="portlet light" ng-init="getUser()">
    <div class="portlet-title">
        <div class="caption">
            <div class="caption-subject font-green-haze bold">
                <span ng-show="!Id">添加用户</span>
                <span ng-show="Id">编辑用户</span>
            </div>
        </div>
    </div>
    <div class="portlet-body">
        <form class="form-horizontal" name="user" novalidate ng-submit-force="true" ng-submit="btnSave_Click(user.$valid)">
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">用户名：</label>
                    <div class="col-xs-8">
                        <input type="text" name="userName" ng-readonly="Id" ng-model="userName" class="form-control" placeholder="用户名" required ng-maxlength="50" />
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">邮箱：</label>
                    <div class="col-xs-6">
                        <input type="email" name="email" ng-model="email" class="form-control" placeholder="邮箱" required ng-maxlength="50" />
                    </div>
                    <div class="col-xs-2">
                        <i style="margin-top:15px;font-size:25px" class="material-icons">{{icon}}</i>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">手机号：</label>
                    <div class="col-xs-8">
                        <input type="text" class="form-control" name="phoneNumber" ng-model="phoneNumber" placeholder="手机号" />
                    </div>
                </div>
            </div> 

            <div class="row margin-top-10">
                <div class="col-sm-offset-4 col-sm-8">
                    <a class="btn btn-default btn-raised" ng-click="btnCancel_Click()">取消</a>
                    <button type="submit" class="btn btn-primary btn-raised">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>